package top.kpromise.note.modules.user.impl;

import org.springframework.stereotype.Service;
import top.kpromise.common.base.BaseServiceImpl;
import top.kpromise.note.modules.user.entity.UserEntity;
import top.kpromise.note.modules.user.mapper.jpa.UserRepository;
import top.kpromise.note.modules.user.service.UserService;

@Service
public class UserServiceImpl extends BaseServiceImpl<UserEntity, UserRepository> implements UserService {

    protected UserServiceImpl(UserRepository repository) {
        super(repository);
    }

    @Override
    public UserEntity findByUserName(String userName) {
        return repository.findByUserName(userName);
    }
}
